package com.biomatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "ls_Rule")
public class Rule {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "ruleId")
    private String ruleId;

    @TableField(value = "name")
    private String name;

    @TableField(value = "Mark")
    private String mark;

    @TableField(value = "CreatorId")
    private String creatorId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CreateTime")
    private Date createTime;

    @TableField(value = "RuleType")
    private Integer ruleType;

    @JsonFormat(pattern = "HH:mm:ss")
    @TableField(value = "BeginTime")
    private Date beginTime;

    @JsonFormat(pattern = "HH:mm:ss")
    @TableField(value = "EndTime")
    private Date endTime;

    @TableField(value = "mode")
    private Integer mode;//模式（单-双人校验）
}
